body {
    background-color: #0a192f;
    color: #ccd6f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 20%);
    background-attachment: fixed;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: #4ECDC4;
    text-shadow: 0 0 15px rgba(78, 205, 196, 0.5);
    position: relative;
    padding: 20px 0;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4ECDC4, transparent);
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #4ECDC4;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #4ECDC4;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.2), transparent);
    transition: all 0.5s;
}

.back-btn:hover {
    background-color: rgba(78, 205, 196, 0.1);
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
    transform: translateY(-2px);
}

.back-btn:hover::before {
    left: 100%;
}

.content-box {
    background-color: rgba(30, 40, 60, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.25);
    border-radius: 10px;
    padding: 30px;
    min-height: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234ecdc4' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.control-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.text-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 6px;
    padding: 15px;
    color: #ccd6f6;
    font-size: 16px;
    resize: vertical;
    min-height: 150px;
    transition: all 0.3s;
}

.text-input:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-group label {
    font-size: 14px;
    color: #8892b0;
}

.option-group select, .option-group input[type="range"] {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 4px;
    padding: 8px;
    color: #ccd6f6;
    transition: all 0.3s;
}

.option-group select:focus {
    outline: none;
    border-color: #4ECDC4;
}

.range-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-control input[type="range"] {
    flex-grow: 1;
    padding: 0;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
}

.range-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4ECDC4;
    cursor: pointer;
}

.range-value {
    min-width: 40px;
    text-align: center;
    color: #4ECDC4;
}

.generate-btn {
    background-color: rgba(78, 205, 196, 0.1);
    color: #4ECDC4;
    border: 1px solid #4ECDC4;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.generate-btn:hover {
    background-color: rgba(78, 205, 196, 0.2);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.5);
    transform: translateY(-2px);
}

.generate-btn i {
    transition: transform 0.3s;
}

.generate-btn:hover i {
    transform: rotate(90deg);
}

.result-area {
    border: 1px dashed rgba(78, 205, 196, 0.3);
    border-radius: 8px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.result-placeholder {
    text-align: center;
    color: #8892b0;
    padding: 20px;
}

.result-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: rgba(78, 205, 196, 0.3);
}

.audio-player {
    width: 100%;
    margin-bottom: 20px;
    display: none;
}

.audio-visualizer {
    width: 100%;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    display: none;
}

.visualizer-bar {
    position: absolute;
    bottom: 0;
    width: 4px;
    background-color: #4ECDC4;
    border-radius: 2px 2px 0 0;
    transition: height 0.1s ease;
}

.loading-indicator {
    display: none;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(78, 205, 196, 0.2);
    border-top-color: #4ECDC4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    display: none;
}

.action-btn {
    background-color: transparent;
    color: #4ECDC4;
    border: 1px solid #4ECDC4;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background-color: rgba(78, 205, 196, 0.1);
}

@media (max-width: 768px) {
    .options {
        flex-direction: column;
        align-items: stretch;
    }
    .generate-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}